<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
    <head>
        <title>Moteve Login</title>
    </head>
    <body>
        <c:if test="${not empty param.error}">
            <font color="red">
                Login error. <br />
                Reason : ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
            </font>
        </c:if>
        <form method="POST" action="<c:url value="/j_spring_security_check" />">
            <table>
                <tr>
                    <td align="right">E-mail</td>
                    <td><input type="text" name="j_username" /></td>
                </tr>
                <tr>
                    <td align="right">Password</td>
                    <td><input type="password" name="j_password" /></td>
                </tr>
                <tr>
                    <td align="right">Remember me</td>
                    <td><input type="checkbox" name="_spring_security_remember_me" /></td>
                </tr>
                <tr>
                    <td colspan="2" align="right">
                        <input type="submit" value="Login" />
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>
